﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YTSK.Frm
{
    public partial class FrmVouchTotal : Form
    {
        public Frm.FrmVouchTotalBase report;
        public FrmVouchTotal()
        {
            try
            {
                InitializeComponent();
                this.Icon = YTSK.Properties.Resources.Fly;
                report = new Frm.FrmVouchTotalBase(this.groupBox2, this.dataGridView1,
                    "p_countfphz", this.toolStrip1);
                report.InitControl();
                this.btQuery.Click += report.GetGridData;
                this.Resize += frmMain_Resize;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
        }

     

        #region 窗体大小
        private void frmMain_Resize(object sender, EventArgs e)
        {
            if (this.Width > 20)
            { this.dataGridView1.Width = this.Width - 20; }
            if (this.Height > 200)
            {
                this.dataGridView1.Height = this.Height - 200;
            }
        }
        #endregion
    }
}
